package com.edais.dao;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.domain.UserAuthentication;
import com.edais.persistence.UserAuthenticationMapper;

@Repository

public class UserAuthenticationDao {
	@Autowired
	private UserAuthenticationMapper userAuthenticationMapper;
	
	/**
	 * 查询用户当日实名认证次数
	 * @param paramsMap
	 * @return
	 */
	public UserAuthentication queryCurrentUserAuthentication(Map<String,Object> paramsMap){
		return this.userAuthenticationMapper.queryCurrentUserAuthentication(paramsMap);
	}
	
	/**
	 * 插入用户当日实名认证信息
	 * @param userAuthentication
	 * @return
	 */
	public Integer insertUserAuthCurrent(UserAuthentication userAuthentication){
		Integer insertCount = this.userAuthenticationMapper.insertUserAuthCurrent(userAuthentication);
		return insertCount;
	}
	
	/**
	 * 更新用户当日实名认证信息
	 * @param userAuthentication
	 * @return
	 */
	public Integer updateUserAuthCurrent(UserAuthentication userAuthentication){
		Integer udpateCount = this.userAuthenticationMapper.updateUserAuthCurrent(userAuthentication);
		return udpateCount;
	}
}
